using System;
using System.Collections.Generic;
using System.Text;

using Pampa.CRUD.Core;

namespace Pampa.GenericEntity.Test
{
    public class SampleActiveRecord : IActiveRecord
    {
        private GenericEntity additionalData;
        private string text;

        public SampleActiveRecord()
        {
            additionalData = new GenericEntity("SampleEntity.AdditionalData");
        }
        
        public GenericEntity AdditionalData
        {
            get { return additionalData; }
            set { additionalData = value; }
        }

        public string Text
        {
            get { return text; }
            set { text = value; }
        }

        #region IActiveRecord Members

        public bool IsNew
        {
            get { throw new Exception("The method or operation is not implemented."); }
        }

        public void Save()
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public void Delete()
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public void BeginTransaction()
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public void RollBackTransaction()
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public void CommitTransaction()
        {
            throw new Exception("The method or operation is not implemented.");
        }

        #endregion
    }
}
